Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: handle player id, name on both frontend and backend #34

Merged
merged 20 commits into from
Feb 19, 2025

Conversation

Aleks334
Copy link
Member

@Aleks334 Aleks334 commented Feb 15, 2025

This pr adds storing player id on frontend and retrieving it on backend. Also name is passed to backend when player enters to lobby and confirms modal by entering name.

There's also some refactoring related to frontend and backend folder structure.

Modal component doesn't have animations. It's tricky to implement them with motion (or with css animations) for dialog html element. It's hard to style backdrop as it is pseudo element. Moreover close() method from dialog api should be deferred to see exit anim (it modifies also display property) . Due to that i leave it without any animations.

Other issues linked with this feature: #29, #23

@Aleks334 Aleks334 linked an issue Feb 15, 2025 that may be closed by this pull request
@Aleks334 Aleks334 requested a review from mit3r February 15, 2025 12:46
mit3r
mit3r previously approved these changes Feb 18, 2025
Copy link
Collaborator

@mit3r mit3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good

@Aleks334 Aleks334 dismissed mit3r’s stale review February 18, 2025 11:29

The merge-base changed after approval.

@Aleks334 Aleks334 requested a review from mit3r February 18, 2025 14:29
Copy link
Collaborator

@mit3r mit3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@mit3r mit3r merged commit 7455089 into main Feb 19, 2025
@mit3r mit3r deleted the feature/F-32-reconnection branch February 19, 2025 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Frontend: saving player id
2 participants